﻿// (c) Copyright slimCODE Software Inc. - www.slimcode.com
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.

using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;

namespace SlimCode.Utils
{
  public abstract class SHA512 : HashAlgorithm
  {
    protected SHA512()
    {
      this.HashSizeValue = 0x200;
    }

    new public static SHA512 Create()
    {
      return SHA512.Create( "System.Security.Cryptography.SHA512" );
    }

    new public static SHA512 Create( string hashName )
    {
      return ( SHA512 )CryptoConfig.CreateFromName( hashName );
    }
  }
}
